# from django.db import models
# from DjangoUeditor.models import UEditorField
#
# from users.models import UserModel
#
#
# # 课程表
# class CourseModel(models.Model):
#     id = models.AutoField(primary_key=True)
#     name = models.CharField(max_length=32, verbose_name="课程名称")
#     number = models.CharField(max_length=32, verbose_name="课程编号")
#     teacher = models.ForeignKey("UserModel", on_delete=models.CASCADE, verbose_name="教师")
#
#     def __str__(self):
#         return self.name
#
#     class Meta:
#         db_table = "course"
#         verbose_name = "课程表"
#         verbose_name_plural = verbose_name
#
#
# # 章节表
# class ChapterModel(models.Model):
#     id = models.AutoField(primary_key=True)
#     name = models.CharField(max_length=32, verbose_name="章节名称")
#     content = UEditorField(verbose_name="章节内容")
#     number = models.CharField(max_length=16, verbose_name="章节编号")
#     course = models.ForeignKey("CourseModel", on_delete=models.CASCADE, verbose_name="课程名称")
#
#     def __str__(self):
#         return self.name
#
#     class Meta:
#         db_table = "chapter"
#         verbose_name = "章节表"
#         verbose_name_plural = verbose_name
#
#
